package com.og.ouroa.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.og.ouroa.pojo.entity.StudentNode;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.swing.text.html.HTML;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Us
 * @since 2021-12-13
 */
public interface StudentNodeService extends IService<StudentNode> {

    //添加文章
    void addNode(Integer sid, String title,String html);

    //删除文章
    void remove(Integer id);

    //精确查询
    StudentNode search(Integer sid,String title);

    //模糊查询
    IPage<StudentNode> fuzzySearch(Page<StudentNode> pages,String title);


    IPage<StudentNode> listTop(Page<StudentNode> pages);

    IPage<StudentNode> listTopByid(Page<StudentNode> pages,Integer sid);

    void updata(Integer sid, String title,String html);

}
